package com.fowo.api.inventory.model.placement;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.format.NumberFormat;
import javax.validation.constraints.*;
import lombok.Data;

/** 库存货位放置表 导入导出辅助模型 */
@Data
public class InventoryPlacementExcelPo {

  @NotNull(message = "仓库内码不能为空")
  @Size(max = 50, message = "仓库内码长度不能超过20")
  @ExcelProperty(value = "*仓库内码")
  private Integer stockId;

  @NotNull(message = "物料内码不能为空")
  @ExcelProperty(value = "*物料内码")
  private Integer itemId;

  @Size(max = 50, message = "批号长度不能超过20")
  @ExcelProperty(value = "批号")
  private String batchNo;

  @ExcelProperty(value = "保质期(天)")
  private Integer shelfLife;

  @DateTimeFormat("yyyy年MM月dd日")
  @ExcelProperty(value = "生产日期")
  private java.util.Date productionDate;

  @DateTimeFormat("yyyy年MM月dd日HH:mm:ss")
  @ExcelProperty(value = "有效期至")
  private java.util.Date expiryDate;

  @NumberFormat("0.0000")
  @ExcelProperty(value = "库存数量")
  private java.math.BigDecimal stockQty;

  @NumberFormat("0.00")
  @ExcelProperty(value = "库存金额")
  private java.math.BigDecimal stockAmount;

  @ExcelProperty(value = "辅助计量内码")
  private Integer auxId;

  @NumberFormat("0.0000")
  @ExcelProperty(value = "辅助数量")
  private java.math.BigDecimal auxQty;
}
